//
//  MineActionitemCVC.swift
//  ShareUmbrella
//
//  Created by niupark on 2017/8/12.
//  Copyright © 2017年 尧尚信息科技. All rights reserved.
//


import UIKit
import YSKit


class MineActionitemCVC: YSLineSeparatorCollectionViewCell {
    private let title = UILabel()
    private let image = UIImageView()
    
    override public func setup() {
        super.setup()
        self.backgroundColor = .clear
        self.image.ys.customize { (view) in
            self.addSubview(view)
            view.snp.makeConstraints({ (make) in
                make.centerX.equalTo(self)
                make.centerY.equalTo(self.snp.top).offset(45)
            })
        }
        self.title.ys.customize { (view) in
            self.addSubview(view)
            view.font = YSFont.t06.font
            view.textColor = YSColor.c102.color
            
            view.snp.makeConstraints({ (make) in
                make.centerX.equalTo(self)
                make.bottom.equalTo(self).offset(-26.5)
                
            })
        }
        
        
        
    }
    
    public func updateUI(_ image: UIImage?, title: String) {
        self.title.text = title
        self.image.image = image
    }
    
    
}
